CC = g++
CFLAGS = -Wall -ggdb -DASSERT=assert
FFLAGS = -Wall -O3

SOURCES = main.cpp neuron.cpp CNaNeuron.cpp CKNaNeuron.cpp CCaKNaNeuron.cpp CSynCaKNaNeuron.cpp CDCaKNaNeuron.cpp CNeuronalNetwork.cpp CSynapse.cpp CSpikeSpooler.cpp CLogger.cpp CSystemClock.cpp 
HEADERS = neuron.h neurontools.h CNaNeuron.h CKNaNeuron.h CCaKNaNeuron.h CSynCaKNaNeuron.h CDCaKNaNeuron.h CNeuronalNetwork.h CSynapse.h CSpikeSpooler.h CLogger.h CSystemClock.h 

TARGET = bgneuron 

.PHONY: all

all: 
	$(CC) $(CFLAGS) -o $(TARGET) $(SOURCES)

final: 
	$(CC) $(FFLAGS) -o $(TARGET) $(SOURCES)

clean: 
	@rm -f *.o $(TARGET) 

debug: 
	$(CC) $(CFLAGS) -pg -o $(TARGET) $(SOURCES)

